﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000DE5 RID: 3557
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ReEnterLastElementStageScRsp : IMessage<ReEnterLastElementStageScRsp>, IMessage, IEquatable<ReEnterLastElementStageScRsp>, IDeepCloneable<ReEnterLastElementStageScRsp>, IBufferMessage
	{
		// Token: 0x17002D1B RID: 11547
		// (get) Token: 0x06009F86 RID: 40838 RVA: 0x001AA40F File Offset: 0x001A860F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ReEnterLastElementStageScRsp> Parser
		{
			get
			{
				return ReEnterLastElementStageScRsp._parser;
			}
		}

		// Token: 0x17002D1C RID: 11548
		// (get) Token: 0x06009F87 RID: 40839 RVA: 0x001AA416 File Offset: 0x001A8616
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ReEnterLastElementStageScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002D1D RID: 11549
		// (get) Token: 0x06009F88 RID: 40840 RVA: 0x001AA428 File Offset: 0x001A8628
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ReEnterLastElementStageScRsp.Descriptor;
			}
		}

		// Token: 0x06009F89 RID: 40841 RVA: 0x001AA42F File Offset: 0x001A862F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ReEnterLastElementStageScRsp()
		{
		}

		// Token: 0x06009F8A RID: 40842 RVA: 0x001AA438 File Offset: 0x001A8638
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ReEnterLastElementStageScRsp(ReEnterLastElementStageScRsp other) : this()
		{
			this.battleInfo_ = ((other.battleInfo_ != null) ? other.battleInfo_.Clone() : null);
			this.retcode_ = other.retcode_;
			this.stageId_ = other.stageId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06009F8B RID: 40843 RVA: 0x001AA490 File Offset: 0x001A8690
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ReEnterLastElementStageScRsp Clone()
		{
			return new ReEnterLastElementStageScRsp(this);
		}

		// Token: 0x17002D1E RID: 11550
		// (get) Token: 0x06009F8C RID: 40844 RVA: 0x001AA498 File Offset: 0x001A8698
		// (set) Token: 0x06009F8D RID: 40845 RVA: 0x001AA4A0 File Offset: 0x001A86A0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneBattleInfo BattleInfo
		{
			get
			{
				return this.battleInfo_;
			}
			set
			{
				this.battleInfo_ = value;
			}
		}

		// Token: 0x17002D1F RID: 11551
		// (get) Token: 0x06009F8E RID: 40846 RVA: 0x001AA4A9 File Offset: 0x001A86A9
		// (set) Token: 0x06009F8F RID: 40847 RVA: 0x001AA4B1 File Offset: 0x001A86B1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17002D20 RID: 11552
		// (get) Token: 0x06009F90 RID: 40848 RVA: 0x001AA4BA File Offset: 0x001A86BA
		// (set) Token: 0x06009F91 RID: 40849 RVA: 0x001AA4C2 File Offset: 0x001A86C2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint StageId
		{
			get
			{
				return this.stageId_;
			}
			set
			{
				this.stageId_ = value;
			}
		}

		// Token: 0x06009F92 RID: 40850 RVA: 0x001AA4CB File Offset: 0x001A86CB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ReEnterLastElementStageScRsp);
		}

		// Token: 0x06009F93 RID: 40851 RVA: 0x001AA4DC File Offset: 0x001A86DC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ReEnterLastElementStageScRsp other)
		{
			return other != null && (other == this || (object.Equals(this.BattleInfo, other.BattleInfo) && this.Retcode == other.Retcode && this.StageId == other.StageId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06009F94 RID: 40852 RVA: 0x001AA53C File Offset: 0x001A873C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.battleInfo_ != null)
			{
				num ^= this.BattleInfo.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.StageId != 0U)
			{
				num ^= this.StageId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06009F95 RID: 40853 RVA: 0x001AA5AA File Offset: 0x001A87AA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06009F96 RID: 40854 RVA: 0x001AA5B2 File Offset: 0x001A87B2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06009F97 RID: 40855 RVA: 0x001AA5BC File Offset: 0x001A87BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(24);
				output.WriteUInt32(this.Retcode);
			}
			if (this.battleInfo_ != null)
			{
				output.WriteRawTag(42);
				output.WriteMessage(this.BattleInfo);
			}
			if (this.StageId != 0U)
			{
				output.WriteRawTag(64);
				output.WriteUInt32(this.StageId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06009F98 RID: 40856 RVA: 0x001AA634 File Offset: 0x001A8834
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.battleInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.BattleInfo);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.StageId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.StageId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06009F99 RID: 40857 RVA: 0x001AA6A4 File Offset: 0x001A88A4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ReEnterLastElementStageScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.battleInfo_ != null)
			{
				if (this.battleInfo_ == null)
				{
					this.BattleInfo = new SceneBattleInfo();
				}
				this.BattleInfo.MergeFrom(other.BattleInfo);
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.StageId != 0U)
			{
				this.StageId = other.StageId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06009F9A RID: 40858 RVA: 0x001AA720 File Offset: 0x001A8920
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06009F9B RID: 40859 RVA: 0x001AA72C File Offset: 0x001A892C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 24U)
				{
					if (num != 42U)
					{
						if (num != 64U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.StageId = input.ReadUInt32();
						}
					}
					else
					{
						if (this.battleInfo_ == null)
						{
							this.BattleInfo = new SceneBattleInfo();
						}
						input.ReadMessage(this.BattleInfo);
					}
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04003D7C RID: 15740
		private static readonly MessageParser<ReEnterLastElementStageScRsp> _parser = new MessageParser<ReEnterLastElementStageScRsp>(() => new ReEnterLastElementStageScRsp());

		// Token: 0x04003D7D RID: 15741
		private UnknownFieldSet _unknownFields;

		// Token: 0x04003D7E RID: 15742
		public const int BattleInfoFieldNumber = 5;

		// Token: 0x04003D7F RID: 15743
		private SceneBattleInfo battleInfo_;

		// Token: 0x04003D80 RID: 15744
		public const int RetcodeFieldNumber = 3;

		// Token: 0x04003D81 RID: 15745
		private uint retcode_;

		// Token: 0x04003D82 RID: 15746
		public const int StageIdFieldNumber = 8;

		// Token: 0x04003D83 RID: 15747
		private uint stageId_;
	}
}
